package com.mohe.shanpao.domain.user;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name = "sys_roles")
public class SysRole
{
	@Id
	@Column(name = "id")
	private Long id;
	
	@Column(name = "name")
    private String name;//角色名称
	
	@Column(name = "description")
    private String description;//角色说明

	@Column(name = "status")
    private Long status;//角色状态 0:启用;1:禁用

	@Column(name = "create_time")
    private Date createTime;//创建时间
	
	@Transient
	private List<SysMenu> sysMenus;
	
	@Transient
	private List<SysFunction> sysFunction;
	
	public List<SysMenu> getSysMenus() {
		return sysMenus;
	}

	public void setSysMenus(List<SysMenu> sysMenus) {
		this.sysMenus = sysMenus;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getStatus() {
		return status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

    public List<SysFunction> getSysFunction()
    {
        return sysFunction;
    }

    public void setSysFunction(List<SysFunction> sysFunction)
    {
        this.sysFunction = sysFunction;
    }
}
